package org.lgiavedoni.android.franq.event.generation.phone;

import org.lgiavedoni.android.franq.core.listener.PhoneSensorEventListener;
import org.lgiavedoni.android.franq.event.PhoneMove;
import org.lgiavedoni.android.franq.service.event.EventService;

import android.hardware.Sensor;
import android.hardware.SensorEvent;

public class SensorAcceleroneterListener extends PhoneSensorEventListener {

	@Override
	public final void _onSensorChanged(SensorEvent sEvent) {
		EventService.inst.fireEvent(new PhoneMove());
	}

	@Override
	public int getSensorType() {
		return Sensor.TYPE_ACCELEROMETER;
	}

}
